		//**********************
	// CONFIG
	//**********************	
	var etat = "intro";


	//**********************
	// CLASS
	//**********************
		//IMAGE

	var SimpleImage = function(pathImage){
		this.x = 0;
		this.x = 0;
		this.img = new Image();
		this.img.src = pathImage;
	}
	SimpleImage.prototype.setX = function(x){ this.x = x };
	SimpleImage.prototype.setY = function(y){ this.y = y };







	// VAGUE
	var Vague = function(pathImage){
		this.x = 0;
		this.y = 0;
		this.img = new Image();
		this.img.src = pathImage;
		this.move = 0;
		this.phase = 0;
		this.interval = null;
	};
	Vague.prototype.setX = function(x){ this.x = x };
	Vague.prototype.setY = function(y){ this.y = y };
	Vague.prototype.startMove = function(time){
		var moi = this;
		this.interval = setInterval(function(){
			moi.move = 5*Math.cos(moi.phase);
			moi.phase = moi.phase + 0.2;
			if( moi.phase > 360)
				moi.phase = 0;
				
		},time);
	};
	Vague.prototype.stopMove = function(){
		clearInterval(this.interval);
	};
	
	





		//LOGO
	var Logo = function(pathImage){
		this.x = 0;
		this.y = 0;
		this.img = new Image();
		this.img.src = pathImage;
		this.imgInv = new Image();
		this.imgInv.src = null;
		this.move = 0;
		this.phase = 0;
		this.zoom = 3;
		this.moveX = 0;
		this.intervalBouge = 0;
		this.intervalDeplacement = 0;
		this.sensDP = 1;
		this.deZoom = 0.5;
	}
	Logo.prototype.setX = function(x){ this.x = x };
	Logo.prototype.setY = function(y){ this.y = y };
	Logo.prototype.startBouge = function(time){
		var moi = this;
		this.intervalBouge = setInterval(function(){
		moi.move = 5*Math.cos(moi.phase);
		moi.phase = moi.phase + 0.2;
		if( moi.phase > 360)
			moi.phase = 0;
		},time);
	}
	Logo.prototype.startDeplacement = function(time,canvas){
		var moi = this;
		this.intervalDeplacement = setInterval(function(){
			if(moi.x < canvas.width/2-(moi.img.width/moi.zoom)/2){
				moi.x = moi.x + 1;
			}
			else{
				if(moi.y<=50){
					
					clearInterval(moi.intervalDeplacement);
					setTimeout(function(){
						etat = "menu";
					},3000);
					
				}else{
					moi.moveX =  5*Math.cos(moi.phase);
					moi.y = moi.y - 1;
					brandTitleY = brandTitleY - 1;
				}
				
				}
			},time);
	}

	Logo.prototype.stopBouge = function(){
		clearInterval(this.intervalBouge);
	}
	Logo.prototype.stopDeplacement = function(){
		clearInterval(this.intervalDeplacement);
	}

